package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.LsdProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface LsdProductService extends BaseService<LsdProductBean> {

	LsdProductBean getLsdProductBeanById(String id) throws Exception;
	
	void removeLsdProductBeanById(String id) throws Exception;
	
	void removeLsdProductBeanByIds(String ids) throws Exception;
	
	LsdProductBean saveLsdProductBean(LsdProductBean crm) throws Exception;
	
	LsdProductBean updateLsdProductBean(LsdProductBean crm) throws Exception;
	
	Page<LsdProductBean>  findLsdProductBeanByCond(LsdProductBean bean,
			Page<LsdProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveLsdProductBeanExt(String sql) throws Exception;

	String findLsdProductBeanExtCreate(String tableName) throws Exception;

	String findLsdProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findLsdProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasLsdProductBeanExtData(String tableName, String id)
			throws Exception;
}